import 'package:get/get.dart';
import 'package:pornhub_app/utils/extension.dart';

import '../../routes/routes.dart';
import '../../services/user_service.dart';
import '../popup/dialog/base_confirm_dialog.dart';

class BuyFailDialog extends BaseConfirmDialog {
  BuyFailDialog()
      : super(
          titleText: '金币余额不足',
          descText:
              '金币余额:${(Get.find<UserService>().assets.gold ?? .0).toStringAsShort()}',
          cancelText: '取消',
          confirmText: '立即充值',
          onConfirm: () => Get.toVip(tabInitIndex: 1),
        );
}
